package io.xccit.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author CH_ywx
 * @date 2023/9/30
 * @description 用户实体
 */
@Data
@ToString
@NoArgsConstructor
public class User implements Serializable {
    /**
     * 主键
     * 用户名
     * 密码
     * 昵称
     * 角色
     */
    private Integer id;
    private String username;
    private String password;
    private String nickname;
    private String role;

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public User(String username, String password, String nickname) {
        this.username = username;
        this.password = password;
        this.nickname = nickname;
    }
}
